package io.gitee.zhangbinhub.acp.boot.warm.flow.conf

import org.dromara.warm.flow.core.config.WarmFlow
import org.dromara.warm.flow.core.utils.IdUtils
import org.dromara.warm.flow.orm.keygen.MybatisFlexIdGen
import org.noear.solon.annotation.Bean
import org.noear.solon.annotation.Configuration


@Configuration
class WarmFlowAutoConfig {
    @Bean
    fun after(warmFlow: WarmFlow) {
        // 设置Mybatis-Flex默认主键生成器
        IdUtils.setInstanceNative(MybatisFlexIdGen())
    }
}